/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package session;

import entities.Customers;
import java.util.List;
import javax.ejb.Local;
import javax.management.relation.Role;

/**
 *
 * @author TANGQUOCTUAN
 */
@Local
public interface CustomersFacadeLocal {

    void create(Customers customers);

    void edit(Customers customers);

    void remove(Customers customers);

    Customers find(Object id);

    List<Customers> findAll();

    List<Customers> findRange(int[] range);

    int count();

    String checkLogin(String username, String password);

    Boolean insertCus(String username, String password, String fname, String lname, String email, String phone, String address, int roleid);

    List showByUser(String username);

    Boolean updateCus(String username, String password, String fname, String lname, String email, String phone, String address);

    List showAllCustomer();

    Boolean deleteCus(String username);

    List searchCust(String username);

    List showEditCus(String username);

    List searchDuplicate(String username);

    void removeMuti(String username);

    Boolean updateCusAdmin(String username, String password, String fname, String lname, String email, String phone, String address, int roleid);

    Boolean changePass(String username, String password);

    List<Customers> showByUserReport(String username, int objRole);
}
